Hi Gerald,
Brad could probably answer much better than me, but besides being a more up-to-date technology I think it mainly offers two things:
#1 it exposes all the C++ functionality to any .NET language including the GCode interpreter, Trajectory Planner, and CoordMotion Libraries which really wasn't accessible before.
#2 it allows the other languages to discover the available functions and call them without having to create special header files and such yourself.
I don't think either of those things would be of much help for where you are in your development.
HTH
TK
| Group: DynoMotion |
Message: 2268 |
From: Brad Murry |
Date: 11/16/2011 |
| Subject: Re: DynoMotion .net update |
Hello Gerald, First- Tom pretty much nails it; The new .net interface is meant to be a more complete implementation for robust access to the DynoMotion hardware. It was also designed to function under 100% managed code with no ‘unsafe’ blocks or com interop requirements. Another thing to consider is that KMotion_dotNet is under continual development and the goal is to parallel the development of the DynoMotion libraries. I do not have a clear idea of your application is but if you are not experiencing roadblocks due to lack of functionality with the KMviavb.dll, then there is likely no immediate reason to migrate to the newer library. That’s the black and white of it, but some arguments could be made to make the switch: · For starters, most of the KM_Controller class’s method calls are pretty much identical to the ones you are using in KMviavb- so there should not be a lot of re-writing. · You also get a cleaner, more “object oriented” model to work with using the new IO and Axis classes instead of WriteLine and WriteLineReadLine, etc… · I ever you do find the need to use coordinate motion(linear or arcs), its already there. -Brad Murry From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Tom Kerekes Sent: Tuesday, November 15, 2011 6:01 PM To: DynoMotion@yahoogroups.com Subject: Re: [DynoMotion] Re: DynoMotion .net update Brad could probably answer much better than me, but besides being a more up-to-date technology I think it mainly offers two things: #1 it exposes all the C++ functionality to any .NET language including the GCode interpreter, Trajectory Planner, and CoordMotion Libraries which really wasn't accessible before. #2 it allows the other languages to discover the available functions and call them without having to create special header files and such yourself. I don't think either of those things would be of much help for where you are in your development. From: geraldft <geraldoft@...> To: DynoMotion@yahoogroups.com Sent: Tuesday, November 15, 2011 4:40 PM Subject: [DynoMotion] Re: DynoMotion .net update Hi
Congratulations on the new dotnet in V2.7. I first had the same question about the "help" file - but now it works.
However - I still have more basic questions about the new programming interface.
For example. Is there accessible information to explain the advantages or new features it exposes? I have been using VB.net for some time already with the KMviavb.dll. I do not use it for CNC, so many of the more dedicated features like arcs are not relevant. Also I have no idea what "canon_axis" means for example. Also I use 8 axes of coordmotion - even though each axis is programmed independently.
Is it worth considering rewriting my software with the new Kmotiondotnet.dll and if so why?
(Without getting too technical...)
Many Thanks Gerald Thompson
--- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@...> wrote: > > Yes, it is valid although Windows like to keep things 'safe' so you will > need to save the file to your desired location first, then navigate to it. > > Right-click and go to properties and on the general tab you will see > something similar to the attached picture:: > > Just click on the [Unblock] button and then you can view it without issues. >
|
|
| Group: DynoMotion |
Message: 2270 |
From: geraldft |
Date: 11/16/2011 |
| Subject: Re: DynoMotion .net update |
Thanks for the reply.
Seems clearer.. I looked at the VB example but there's probably still a
bit of a learning curve to migrate.
My move profiles are generated by the software using graphing techniques
based on keyframe interpolation. Then I use the LinearEX command to
feed long lists of move data to the Kflop buffer. This is the part that
could be improved but mostly it's the USB link that is the limiting
factor - plus the fact that the buffer eats itself up as it runs - or
atleast needs to be reloaded after each run.
Some functions like setting step pulse width still need to be changed
via c-threads but generally most functions are available.
In future I plan to implement more realtime 3D virtual models so that
certain mechanical rig designs can be controlled in XYZ linear
coordinates. This can be done using c threads, but maybe some other
developments will take place and lead to new options?
GT
--- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@...> wrote:
>
> Hello Gerald,
>
>
>
> First- Tom pretty much nails it; The new .net interface is meant to be
a more complete implementation for robust access to the DynoMotion
hardware.
>
> It was also designed to function under 100% managed code with no
âunsafeâ blocks or com interop requirements.
>
> Another thing to consider is that KMotion_dotNet is under continual
development and the goal is to parallel the development of the
DynoMotion libraries.
>
> I do not have a clear idea of your application is but if you are not
experiencing roadblocks due to lack of functionality with the
KMviavb.dll, then there is likely no immediate reason to migrate to the
newer library.
>
> Thatâs the black and white of it, but some arguments could be
made to make the switch:
>
> · For starters, most of the KM_Controller classâs
method calls are pretty much identical to the ones you are using in
KMviavb- so there should not be a lot of re-writing.
>
> · You also get a cleaner, more âobject
orientedâ model to work with using the new IO and Axis classes
instead of WriteLine and WriteLineReadLine, etcâ¦
>
> · I ever you do find the need to use coordinate
motion(linear or arcs), its already there.
>
> -Brad Murry
>
> From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com]
On Behalf Of Tom Kerekes
> Sent: Tuesday, November 15, 2011 6:01 PM
> To: DynoMotion@yahoogroups.com
> Subject: Re: [DynoMotion] Re: DynoMotion .net update
> Hi Gerald,
> Brad could probably answer much better than me, but besides being a
more up-to-date technology I think it mainly offers two things:
> #1 it exposes all the C++ functionality to any .NET language including
the GCode interpreter, Trajectory Planner, and CoordMotion Libraries
which really wasn't accessible before.
>
> #2 it allows the other languages to discover the available functions
and call them without having to create special header files and such
yourself.
>
> I don't think either of those things would be of much help for where
you are in your development.
> HTH
>
> TK
>
>
>
> From: geraldft geraldoft@...
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, November 15, 2011 4:40 PM
> Subject: [DynoMotion] Re: DynoMotion .net update
>
> Hi
>
> Congratulations on the new dotnet in V2.7. I first had the same
question about the "help" file - but now it works.
>
> However - I still have more basic questions about the new programming
interface.
>
> For example. Is there accessible information to explain the advantages
or new features it exposes? I have been using VB.net <http://vb.net/>
for some time already with the KMviavb.dll. I do not use it for CNC, so
many of the more dedicated features like arcs are not relevant. Also I
have no idea what "canon_axis" means for example. Also I use 8 axes of
coordmotion - even though each axis is programmed independently.
>
> Is it worth considering rewriting my software with the new
Kmotiondotnet.dll and if so why?
>
> (Without getting too technical...)
>
> Many Thanks
> Gerald Thompson
>
> --- In DynoMotion@yahoogroups.com
<mailto:DynoMotion%40yahoogroups.com> , Brad Murry bradodarb@ wrote:
> >
> > Yes, it is valid although Windows like to keep things 'safe' so you
will
> > need to save the file to your desired location first, then navigate
to it.
> >
> > Right-click and go to properties and on the general tab you will see
> > something similar to the attached picture::
> >
> > Just click on the [Unblock] button and then you can view it without
issues.
> >
>
|
|
| Group: DynoMotion |
Message: 3035 |
From: bradodarb |
Date: 1/10/2012 |
| Subject: DynoMotion .net update |
| Group: DynoMotion |
Message: 3046 |
From: Tom Kerekes |
Date: 1/10/2012 |
| Subject: Re: DynoMotion .net update |
Thanks so much Brad.
Kevin were you able to use this?
Thanks
TK
| Group: DynoMotion |
Message: 3048 |
From: fireup_kev |
Date: 1/10/2012 |
| Subject: Re: DynoMotion .net update |
Tom, Brad,
I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.
Also there seem to be a 1-off error in the Main_Status
GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.
The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..
MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Thanks so much Brad.
> Â
> Kevin were you able to use this?
> Â
> Thanks
> TK
>
> From: bradodarb <bradodarb@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, January 10, 2012 9:34 AM
> Subject: [DynoMotion] DynoMotion .net update
>
>
> Â
> The .net DynoMotion libraries have been updated
>
> Fixed some typo's
>
> Completed the Main_Status implementation
>
> Added Get and Set methods for defining MCode Actions(untested)
>
> Download the source here::
>
> http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
>
> ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's
>
> ---Or---
>
> Download the dll's and place in your C:\KMotion428\KMotion\Release\
>
> here::
>
> http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
>
> Happy coding,
>
> Brad Murry
>
|
|
| Group: DynoMotion |
Message: 3050 |
From: Brad Murry |
Date: 1/10/2012 |
| Subject: Re: DynoMotion .net update |
I’ll have a look, thanks for the detailed feedback Kevin. -Brad Murry From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev Sent: Tuesday, January 10, 2012 7:54 PM To: DynoMotion@yahoogroups.com Subject: [DynoMotion] Re: DynoMotion .net update Tom, Brad, I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.
Also there seem to be a 1-off error in the Main_Status GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.
The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..
MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote: > > Thanks so much Brad. >  > Kevin were you able to use this? >  > Thanks > TK > > From: bradodarb <bradodarb@...> > To: DynoMotion@yahoogroups.com > Sent: Tuesday, January 10, 2012 9:34 AM > Subject: [DynoMotion] DynoMotion .net update > > >  > The .net DynoMotion libraries have been updated > > Fixed some typo's > > Completed the Main_Status implementation > > Added Get and Set methods for defining MCode Actions(untested) > > Download the source here:: > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download > > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's > > ---Or--- > > Download the dll's and place in your C:\KMotion428\KMotion\Release\ > > here:: > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download > > Happy coding, > > Brad Murry >
|
|
| Group: DynoMotion |
Message: 3054 |
From: Tom Kerekes |
Date: 1/10/2012 |
| Subject: Re: DynoMotion .net update |
Hi Brad,
Yes it looks like we are not exposing
void SetUserMCodeCallback(G_M_USER_CALLBACK *UserFn);
Regards
TK
| Group: DynoMotion |
Message: 3055 |
From: Brad Murry |
Date: 1/10/2012 |
| Subject: Re: DynoMotion .net update |
Ahh…. I was setting SetUserCallback ß What is this for then? I will exposed the other callback as well. -Brad Murry From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Tom Kerekes Sent: Tuesday, January 10, 2012 10:11 PM To: DynoMotion@yahoogroups.com Subject: Re: [DynoMotion] Re: DynoMotion .net update Yes it looks like we are not exposing void SetUserMCodeCallback(G_M_USER_CALLBACK *UserFn); I’ll have a look, thanks for the detailed feedback Kevin. Tom, Brad, I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.
Also there seem to be a 1-off error in the Main_Status GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.
The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..
MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote: > > Thanks so much Brad. >  > Kevin were you able to use this? >  > Thanks > TK > > From: bradodarb <bradodarb@...> > To: DynoMotion@yahoogroups.com > Sent: Tuesday, January 10, 2012 9:34 AM > Subject: [DynoMotion] DynoMotion .net update > > >  > The .net DynoMotion libraries have been updated > > Fixed some typo's > > Completed the Main_Status implementation > > Added Get and Set methods for defining MCode Actions(untested) > > Download the source here:: > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download > > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's > > ---Or--- > > Download the dll's and place in your C:\KMotion428\KMotion\Release\ > > here:: > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download > > Happy coding, > > Brad Murry >
|
|
| Group: DynoMotion |
Message: 3057 |
From: Brad Murry |
Date: 1/10/2012 |
| Subject: Re: DynoMotion .net update |
Nevermind… SetUserCallback is for (USR, string) SetUserMCodeCallback returns the indexed Mcode (like M6 returns 6) Correct? -Brad Murry From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Brad Murry Sent: Tuesday, January 10, 2012 11:28 PM To: DynoMotion@yahoogroups.com Subject: RE: [DynoMotion] Re: DynoMotion .net update Ahh…. I was setting SetUserCallback ß What is this for then? I will exposed the other callback as well. -Brad Murry Yes it looks like we are not exposing void SetUserMCodeCallback(G_M_USER_CALLBACK *UserFn); I’ll have a look, thanks for the detailed feedback Kevin. Tom, Brad, I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.
Also there seem to be a 1-off error in the Main_Status GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.
The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..
MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote: > > Thanks so much Brad. >  > Kevin were you able to use this? >  > Thanks > TK > > From: bradodarb <bradodarb@...> > To: DynoMotion@yahoogroups.com > Sent: Tuesday, January 10, 2012 9:34 AM > Subject: [DynoMotion] DynoMotion .net update > > >  > The .net DynoMotion libraries have been updated > > Fixed some typo's > > Completed the Main_Status implementation > > Added Get and Set methods for defining MCode Actions(untested) > > Download the source here:: > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download > > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's > > ---Or--- > > Download the dll's and place in your C:\KMotion428\KMotion\Release\ > > here:: > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download > > Happy coding, > > Brad Murry >
|
|
| Group: DynoMotion |
Message: 3058 |
From: Tom Kerekes |
Date: 1/10/2012 |
| Subject: Re: DynoMotion .net update |
Hi Brad,
That is for the Comment form of callback (USR,XXXXX)
Sorry for the poor choice of naming.
Thanks
TK
| Group: DynoMotion |
Message: 3059 |
From: Tom Kerekes |
Date: 1/10/2012 |
| Subject: Re: DynoMotion .net update |
Correct Brad
TK
| Group: DynoMotion |
Message: 3075 |
From: fireup_kev |
Date: 1/12/2012 |
| Subject: Re: DynoMotion .net update |
Any updates on this?
Thanks,
Kevin
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Brad,
> Â
> That is for the Comment form of callback (USR,XXXXX)
> Â
> Sorry for the poor choice of naming.
> Â
> Thanks
> TK
> Â
> From: Brad Murry <bradodarb@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, January 10, 2012 10:27 PM
> Subject: RE: [DynoMotion] Re: DynoMotion .net update
>
>
> Â
> Ahhâ¦.
> Â
> I was setting SetUserCallback ÃWhat is this for then?
> Â
> Â
> I will exposed the other callback as well.
> Â
> -Brad Murry
> Â
> From:DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Tom Kerekes
> Sent: Tuesday, January 10, 2012 10:11 PM
> To: DynoMotion@yahoogroups.com
> Subject: Re: [DynoMotion] Re: DynoMotion .net update
> Â
> Â
> Hi Brad,
> Â
> Yes it looks like we are not exposing
> Â
> voidSetUserMCodeCallback(G_M_USER_CALLBACK *UserFn);
> Â
> Regards
> TK
> Â
> From:Brad Murry <bradodarb@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, January 10, 2012 7:39 PM
> Subject: RE: [DynoMotion] Re: DynoMotion .net update
> Â
> Â
> Â Iâll have a look, thanks for the detailed feedback Kevin.
> Â
> -Brad Murry
> Â
> From:DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev
> Sent: Tuesday, January 10, 2012 7:54 PM
> To: DynoMotion@yahoogroups.com
> Subject: [DynoMotion] Re: DynoMotion .net update
> Â
> Â
> Tom, Brad,
> I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.
>
> Also there seem to be a 1-off error in the Main_Status
> GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.
>
> The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..
>
> MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Thanks so much Brad.
> > ÃÂ
> > Kevin were you able toÃÂ use this?
> > ÃÂ
> > Thanks
> > TK
> >
> > From: bradodarb <bradodarb@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, January 10, 2012 9:34 AM
> > Subject: [DynoMotion] DynoMotion .net update
> >
> >
> > ÃÂ
> > The .net DynoMotion libraries have been updated
> >
> > Fixed some typo's
> >
> > Completed the Main_Status implementation
> >
> > Added Get and Set methods for defining MCode Actions(untested)
> >
> > Download the source here::
> >
> > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
> >
> > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's
> >
> > ---Or---
> >
> > Download the dll's and place in your C:\KMotion428\KMotion\Release\
> >
> > here::
> >
> > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
> >
> > Happy coding,
> >
> > Brad Murry
> >
> Â
>
|
|
| Group: DynoMotion |
Message: 3076 |
From: Brad Murry |
Date: 1/12/2012 |
| Subject: Re: DynoMotion .net update |
Hey Kevin, It is implemented, just need to do a quick test when I get a chance. -Brad Murry From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev Sent: Thursday, January 12, 2012 9:16 AM To: DynoMotion@yahoogroups.com Subject: [DynoMotion] Re: DynoMotion .net update Any updates on this? Thanks, Kevin
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote: > > Hi Brad, >  > That is for the Comment form of callback (USR,XXXXX) >  > Sorry for the poor choice of naming. >  > Thanks > TK >  > From: Brad Murry <bradodarb@...> > To: DynoMotion@yahoogroups.com > Sent: Tuesday, January 10, 2012 10:27 PM > Subject: RE: [DynoMotion] Re: DynoMotion .net update > > >  > Ahh…. >  > I was setting SetUserCallback ßWhat is this for then? >  >  > I will exposed the other callback as well. >  > -Brad Murry >  > From:DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Tom Kerekes > Sent: Tuesday, January 10, 2012 10:11 PM > To: DynoMotion@yahoogroups.com > Subject: Re: [DynoMotion] Re: DynoMotion .net update >  >  > Hi Brad, >  > Yes it looks like we are not exposing >  > voidSetUserMCodeCallback(G_M_USER_CALLBACK *UserFn); >  > Regards > TK >  > From:Brad Murry <bradodarb@...> > To: DynoMotion@yahoogroups.com > Sent: Tuesday, January 10, 2012 7:39 PM > Subject: RE: [DynoMotion] Re: DynoMotion .net update >  >  >  I’ll have a look, thanks for the detailed feedback Kevin. >  > -Brad Murry >  > From:DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev > Sent: Tuesday, January 10, 2012 7:54 PM > To: DynoMotion@yahoogroups.com > Subject: [DynoMotion] Re: DynoMotion .net update >  >  > Tom, Brad, > I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event. > > Also there seem to be a 1-off error in the Main_Status > GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis. > > The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this.. > > MainStatus.GetBitsState(bit > 31 ? bit : bit + 1); > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote: > > > > Thanks so much Brad. > >  > > Kevin were you able to use this? > >  > > Thanks > > TK > > > > From: bradodarb <bradodarb@> > > To: DynoMotion@yahoogroups.com > > Sent: Tuesday, January 10, 2012 9:34 AM > > Subject: [DynoMotion] DynoMotion .net update > > > > > >  > > The .net DynoMotion libraries have been updated > > > > Fixed some typo's > > > > Completed the Main_Status implementation > > > > Added Get and Set methods for defining MCode Actions(untested) > > > > Download the source here:: > > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download > > > > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's > > > > ---Or--- > > > > Download the dll's and place in your C:\KMotion428\KMotion\Release\ > > > > here:: > > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download > > > > Happy coding, > > > > Brad Murry > > >  >
|
|
| Group: DynoMotion |
Message: 3084 |
From: bradodarb |
Date: 1/12/2012 |
| Subject: Re: DynoMotion .net update |
OK, new DynoMotion.net libs are available here::
http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
And the compiled dll's are here::
http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
Fixed a bug getting the Mcode Action values.
Implemented the Mcode user callback event-
_Controller.Interpreter.InterpreterUserCallbackRequested += new KMotion_dotNet.KM_Controller.KM_Interpreter.KM_GCodeInterpreterUserCallbackHandler(Interpreter_InterpreterUserCallbackRequested);
Enjoy,
Brad Murry
--- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@...> wrote:
>
> Hey Kevin,
>
>
>
> It is implemented, just need to do a quick test when I get a chance.
>
>
>
> -Brad Murry
>
>
>
> From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev
> Sent: Thursday, January 12, 2012 9:16 AM
> To: DynoMotion@yahoogroups.com
> Subject: [DynoMotion] Re: DynoMotion .net update
>
>
>
>
>
> Any updates on this?
> Thanks,
> Kevin
>
> --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
> >
> > Hi Brad,
> > Ã
> > That is for the Comment form of callback (USR,XXXXX)
> > Ã
> > Sorry for the poor choice of naming.
> > Ã
> > Thanks
> > TK
> > Ã
> > From: Brad Murry <bradodarb@>
> > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > Sent: Tuesday, January 10, 2012 10:27 PM
> > Subject: RE: [DynoMotion] Re: DynoMotion .net update
> >
> >
> > Ã
> > Ahhââ¬Â¦.
> > Ã
> > I was setting SetUserCallback ßWhat is this for then?
> > Ã
> > Ã
> > I will exposed the other callback as well.
> > Ã
> > -Brad Murry
> > Ã
> > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of Tom Kerekes
> > Sent: Tuesday, January 10, 2012 10:11 PM
> > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > Subject: Re: [DynoMotion] Re: DynoMotion .net update
> > Ã
> > Ã
> > Hi Brad,
> > Ã
> > Yes it looks like we are not exposing
> > Ã
> > voidSetUserMCodeCallback(G_M_USER_CALLBACK *UserFn);
> > Ã
> > Regards
> > TK
> > Ã
> > From:Brad Murry <bradodarb@>
> > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > Sent: Tuesday, January 10, 2012 7:39 PM
> > Subject: RE: [DynoMotion] Re: DynoMotion .net update
> > Ã
> > Ã
> > à Iââ¬â¢ll have a look, thanks for the detailed feedback Kevin.
> > Ã
> > -Brad Murry
> > Ã
> > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of fireup_kev
> > Sent: Tuesday, January 10, 2012 7:54 PM
> > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > Subject: [DynoMotion] Re: DynoMotion .net update
> > Ã
> > Ã
> > Tom, Brad,
> > I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.
> >
> > Also there seem to be a 1-off error in the Main_Status
> > GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.
> >
> > The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..
> >
> > MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);
> >
> > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
> > >
> > > Thanks so much Brad.
> > > ÃâÃ
> > > Kevin were you able toÃâà use this?
> > > ÃâÃ
> > > Thanks
> > > TK
> > >
> > > From: bradodarb <bradodarb@>
> > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > > Sent: Tuesday, January 10, 2012 9:34 AM
> > > Subject: [DynoMotion] DynoMotion .net update
> > >
> > >
> > > ÃâÃ
> > > The .net DynoMotion libraries have been updated
> > >
> > > Fixed some typo's
> > >
> > > Completed the Main_Status implementation
> > >
> > > Added Get and Set methods for defining MCode Actions(untested)
> > >
> > > Download the source here::
> > >
> > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
> > >
> > > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's
> > >
> > > ---Or---
> > >
> > > Download the dll's and place in your C:\KMotion428\KMotion\Release\
> > >
> > > here::
> > >
> > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
> > >
> > > Happy coding,
> > >
> > > Brad Murry
> > >
> > Ã
> >
>
|
|
| Group: DynoMotion |
Message: 3085 |
From: bradodarb |
Date: 1/12/2012 |
| Subject: Re: DynoMotion .net update |
Actually, the Mcode callback signature is as follows::
_Controller.Interpreter.InterpreterUserMCodeCallbackRequested += new KMotion_dotNet.KM_Controller.KM_Interpreter.KM_GCodeInterpreterUserMcodeCallbackHandler(Interpreter_InterpreterUserMCodeCallbackRequested);
-Brad Murry
--- In DynoMotion@yahoogroups.com, "bradodarb" <bradodarb@...> wrote:
>
> OK, new DynoMotion.net libs are available here::
>
>
> http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
>
>
> And the compiled dll's are here::
>
> http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
>
>
>
> Fixed a bug getting the Mcode Action values.
>
> Implemented the Mcode user callback event-
> _Controller.Interpreter.InterpreterUserCallbackRequested += new KMotion_dotNet.KM_Controller.KM_Interpreter.KM_GCodeInterpreterUserCallbackHandler(Interpreter_InterpreterUserCallbackRequested);
>
>
> Enjoy,
>
> Brad Murry
>
>
> --- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@> wrote:
> >
> > Hey Kevin,
> >
> >
> >
> > It is implemented, just need to do a quick test when I get a chance.
> >
> >
> >
> > -Brad Murry
> >
> >
> >
> > From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev
> > Sent: Thursday, January 12, 2012 9:16 AM
> > To: DynoMotion@yahoogroups.com
> > Subject: [DynoMotion] Re: DynoMotion .net update
> >
> >
> >
> >
> >
> > Any updates on this?
> > Thanks,
> > Kevin
> >
> > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
> > >
> > > Hi Brad,
> > > Ã
> > > That is for the Comment form of callback (USR,XXXXX)
> > > Ã
> > > Sorry for the poor choice of naming.
> > > Ã
> > > Thanks
> > > TK
> > > Ã
> > > From: Brad Murry <bradodarb@>
> > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > > Sent: Tuesday, January 10, 2012 10:27 PM
> > > Subject: RE: [DynoMotion] Re: DynoMotion .net update
> > >
> > >
> > > Ã
> > > Ahhââ¬Â¦.
> > > Ã
> > > I was setting SetUserCallback ßWhat is this for then?
> > > Ã
> > > Ã
> > > I will exposed the other callback as well.
> > > Ã
> > > -Brad Murry
> > > Ã
> > > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of Tom Kerekes
> > > Sent: Tuesday, January 10, 2012 10:11 PM
> > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > > Subject: Re: [DynoMotion] Re: DynoMotion .net update
> > > Ã
> > > Ã
> > > Hi Brad,
> > > Ã
> > > Yes it looks like we are not exposing
> > > Ã
> > > voidSetUserMCodeCallback(G_M_USER_CALLBACK *UserFn);
> > > Ã
> > > Regards
> > > TK
> > > Ã
> > > From:Brad Murry <bradodarb@>
> > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > > Sent: Tuesday, January 10, 2012 7:39 PM
> > > Subject: RE: [DynoMotion] Re: DynoMotion .net update
> > > Ã
> > > Ã
> > > à Iââ¬â¢ll have a look, thanks for the detailed feedback Kevin.
> > > Ã
> > > -Brad Murry
> > > Ã
> > > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of fireup_kev
> > > Sent: Tuesday, January 10, 2012 7:54 PM
> > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > > Subject: [DynoMotion] Re: DynoMotion .net update
> > > Ã
> > > Ã
> > > Tom, Brad,
> > > I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.
> > >
> > > Also there seem to be a 1-off error in the Main_Status
> > > GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.
> > >
> > > The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..
> > >
> > > MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);
> > >
> > > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
> > > >
> > > > Thanks so much Brad.
> > > > ÃâÃ
> > > > Kevin were you able toÃâà use this?
> > > > ÃâÃ
> > > > Thanks
> > > > TK
> > > >
> > > > From: bradodarb <bradodarb@>
> > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > > > Sent: Tuesday, January 10, 2012 9:34 AM
> > > > Subject: [DynoMotion] DynoMotion .net update
> > > >
> > > >
> > > > ÃâÃ
> > > > The .net DynoMotion libraries have been updated
> > > >
> > > > Fixed some typo's
> > > >
> > > > Completed the Main_Status implementation
> > > >
> > > > Added Get and Set methods for defining MCode Actions(untested)
> > > >
> > > > Download the source here::
> > > >
> > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
> > > >
> > > > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's
> > > >
> > > > ---Or---
> > > >
> > > > Download the dll's and place in your C:\KMotion428\KMotion\Release\
> > > >
> > > > here::
> > > >
> > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
> > > >
> > > > Happy coding,
> > > >
> > > > Brad Murry
> > > >
> > > Ã
> > >
> >
>
|
|
| Group: DynoMotion |
Message: 3103 |
From: fireup_kev |
Date: 1/13/2012 |
| Subject: Re: DynoMotion .net update |
UserMCodeCallback seems to work fine now.
SetOrigin and ChangeFixtureNumber does not seem to work like it should. SetOrgin works only after a couple times after loading gCode, ChangeFixtureNumber seems to not do anything. How should I use these two functions? Is there other things I have to do before calling these functions?
Kevin
--- In DynoMotion@yahoogroups.com, "bradodarb" <bradodarb@...> wrote:
>
> Actually, the Mcode callback signature is as follows::
>
> _Controller.Interpreter.InterpreterUserMCodeCallbackRequested += new KMotion_dotNet.KM_Controller.KM_Interpreter.KM_GCodeInterpreterUserMcodeCallbackHandler(Interpreter_InterpreterUserMCodeCallbackRequested);
>
>
> -Brad Murry
>
> --- In DynoMotion@yahoogroups.com, "bradodarb" <bradodarb@> wrote:
> >
> > OK, new DynoMotion.net libs are available here::
> >
> >
> > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
> >
> >
> > And the compiled dll's are here::
> >
> > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
> >
> >
> >
> > Fixed a bug getting the Mcode Action values.
> >
> > Implemented the Mcode user callback event-
> > _Controller.Interpreter.InterpreterUserCallbackRequested += new KMotion_dotNet.KM_Controller.KM_Interpreter.KM_GCodeInterpreterUserCallbackHandler(Interpreter_InterpreterUserCallbackRequested);
> >
> >
> > Enjoy,
> >
> > Brad Murry
> >
> >
> > --- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@> wrote:
> > >
> > > Hey Kevin,
> > >
> > >
> > >
> > > It is implemented, just need to do a quick test when I get a chance.
> > >
> > >
> > >
> > > -Brad Murry
> > >
> > >
> > >
> > > From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev
> > > Sent: Thursday, January 12, 2012 9:16 AM
> > > To: DynoMotion@yahoogroups.com
> > > Subject: [DynoMotion] Re: DynoMotion .net update
> > >
> > >
> > >
> > >
> > >
> > > Any updates on this?
> > > Thanks,
> > > Kevin
> > >
> > > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Brad,
> > > > Ã
> > > > That is for the Comment form of callback (USR,XXXXX)
> > > > Ã
> > > > Sorry for the poor choice of naming.
> > > > Ã
> > > > Thanks
> > > > TK
> > > > Ã
> > > > From: Brad Murry <bradodarb@>
> > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > > > Sent: Tuesday, January 10, 2012 10:27 PM
> > > > Subject: RE: [DynoMotion] Re: DynoMotion .net update
> > > >
> > > >
> > > > Ã
> > > > Ahhââ¬Â¦.
> > > > Ã
> > > > I was setting SetUserCallback ßWhat is this for then?
> > > > Ã
> > > > Ã
> > > > I will exposed the other callback as well.
> > > > Ã
> > > > -Brad Murry
> > > > Ã
> > > > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of Tom Kerekes
> > > > Sent: Tuesday, January 10, 2012 10:11 PM
> > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > > > Subject: Re: [DynoMotion] Re: DynoMotion .net update
> > > > Ã
> > > > Ã
> > > > Hi Brad,
> > > > Ã
> > > > Yes it looks like we are not exposing
> > > > Ã
> > > > voidSetUserMCodeCallback(G_M_USER_CALLBACK *UserFn);
> > > > Ã
> > > > Regards
> > > > TK
> > > > Ã
> > > > From:Brad Murry <bradodarb@>
> > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > > > Sent: Tuesday, January 10, 2012 7:39 PM
> > > > Subject: RE: [DynoMotion] Re: DynoMotion .net update
> > > > Ã
> > > > Ã
> > > > à Iââ¬â¢ll have a look, thanks for the detailed feedback Kevin.
> > > > Ã
> > > > -Brad Murry
> > > > Ã
> > > > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of fireup_kev
> > > > Sent: Tuesday, January 10, 2012 7:54 PM
> > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > > > Subject: [DynoMotion] Re: DynoMotion .net update
> > > > Ã
> > > > Ã
> > > > Tom, Brad,
> > > > I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.
> > > >
> > > > Also there seem to be a 1-off error in the Main_Status
> > > > GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.
> > > >
> > > > The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..
> > > >
> > > > MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);
> > > >
> > > > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Thanks so much Brad.
> > > > > ÃâÃ
> > > > > Kevin were you able toÃâà use this?
> > > > > ÃâÃ
> > > > > Thanks
> > > > > TK
> > > > >
> > > > > From: bradodarb <bradodarb@>
> > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > > > > Sent: Tuesday, January 10, 2012 9:34 AM
> > > > > Subject: [DynoMotion] DynoMotion .net update
> > > > >
> > > > >
> > > > > ÃâÃ
> > > > > The .net DynoMotion libraries have been updated
> > > > >
> > > > > Fixed some typo's
> > > > >
> > > > > Completed the Main_Status implementation
> > > > >
> > > > > Added Get and Set methods for defining MCode Actions(untested)
> > > > >
> > > > > Download the source here::
> > > > >
> > > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
> > > > >
> > > > > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's
> > > > >
> > > > > ---Or---
> > > > >
> > > > > Download the dll's and place in your C:\KMotion428\KMotion\Release\
> > > > >
> > > > > here::
> > > > >
> > > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
> > > > >
> > > > > Happy coding,
> > > > >
> > > > > Brad Murry
> > > > >
> > > > Ã
> > > >
> > >
> >
>
|
|
| Group: DynoMotion |
Message: 3113 |
From: Brad Murry |
Date: 1/14/2012 |
| Subject: Re: DynoMotion .net update |
Kevin, Set origin works for me if you call the following code first:: _Controller.Interpreter.InitializeOnExecute = false; _Controller.Interpreter.InitializeInterpreter(); This code should be called when you are initializing your system and only needs to be called once. I have not tested ChangeFixtureNumber, perhaps Tom can tell us when/where/how to use it and what we should expect to happen. -Brad Murry From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev Sent: Friday, January 13, 2012 10:08 AM To: DynoMotion@yahoogroups.com Subject: [DynoMotion] Re: DynoMotion .net update UserMCodeCallback seems to work fine now.
SetOrigin and ChangeFixtureNumber does not seem to work like it should. SetOrgin works only after a couple times after loading gCode, ChangeFixtureNumber seems to not do anything. How should I use these two functions? Is there other things I have to do before calling these functions?
Kevin
--- In DynoMotion@yahoogroups.com, "bradodarb" <bradodarb@...> wrote: > > Actually, the Mcode callback signature is as follows:: > > _Controller.Interpreter.InterpreterUserMCodeCallbackRequested += new KMotion_dotNet.KM_Controller.KM_Interpreter.KM_GCodeInterpreterUserMcodeCallbackHandler(Interpreter_InterpreterUserMCodeCallbackRequested); > > > -Brad Murry > > --- In DynoMotion@yahoogroups.com, "bradodarb" <bradodarb@> wrote: > > > > OK, new DynoMotion.net libs are available here:: > > > > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download > > > > > > And the compiled dll's are here:: > > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download > > > > > > > > Fixed a bug getting the Mcode Action values. > > > > Implemented the Mcode user callback event- > > _Controller.Interpreter.InterpreterUserCallbackRequested += new KMotion_dotNet.KM_Controller.KM_Interpreter.KM_GCodeInterpreterUserCallbackHandler(Interpreter_InterpreterUserCallbackRequested); > > > > > > Enjoy, > > > > Brad Murry > > > > > > --- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@> wrote: > > > > > > Hey Kevin, > > > > > > > > > > > > It is implemented, just need to do a quick test when I get a chance. > > > > > > > > > > > > -Brad Murry > > > > > > > > > > > > From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev > > > Sent: Thursday, January 12, 2012 9:16 AM > > > To: DynoMotion@yahoogroups.com > > > Subject: [DynoMotion] Re: DynoMotion .net update > > > > > > > > > > > > > > > > > > Any updates on this? > > > Thanks, > > > Kevin > > > > > > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote: > > > > > > > > Hi Brad, > > > >  > > > > That is for the Comment form of callback (USR,XXXXX) > > > >  > > > > Sorry for the poor choice of naming. > > > >  > > > > Thanks > > > > TK > > > >  > > > > From: Brad Murry <bradodarb@> > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> > > > > Sent: Tuesday, January 10, 2012 10:27 PM > > > > Subject: RE: [DynoMotion] Re: DynoMotion .net update > > > > > > > > > > > >  > > > > Ahh…. > > > >  > > > > I was setting SetUserCallback ßWhat is this for then? > > > >  > > > >  > > > > I will exposed the other callback as well. > > > >  > > > > -Brad Murry > > > >  > > > > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of Tom Kerekes > > > > Sent: Tuesday, January 10, 2012 10:11 PM > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> > > > > Subject: Re: [DynoMotion] Re: DynoMotion .net update > > > >  > > > >  > > > > Hi Brad, > > > >  > > > > Yes it looks like we are not exposing > > > >  > > > > voidSetUserMCodeCallback(G_M_USER_CALLBACK *UserFn); > > > >  > > > > Regards > > > > TK > > > >  > > > > From:Brad Murry <bradodarb@> > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> > > > > Sent: Tuesday, January 10, 2012 7:39 PM > > > > Subject: RE: [DynoMotion] Re: DynoMotion .net update > > > >  > > > >  > > > >  I’ll have a look, thanks for the detailed feedback Kevin. > > > >  > > > > -Brad Murry > > > >  > > > > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of fireup_kev > > > > Sent: Tuesday, January 10, 2012 7:54 PM > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> > > > > Subject: [DynoMotion] Re: DynoMotion .net update > > > >  > > > >  > > > > Tom, Brad, > > > > I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event. > > > > > > > > Also there seem to be a 1-off error in the Main_Status > > > > GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis. > > > > > > > > The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this.. > > > > > > > > MainStatus.GetBitsState(bit > 31 ? bit : bit + 1); > > > > > > > > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote: > > > > > > > > > > Thanks so much Brad. > > > > >  > > > > > Kevin were you able to use this? > > > > >  > > > > > Thanks > > > > > TK > > > > > > > > > > From: bradodarb <bradodarb@> > > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> > > > > > Sent: Tuesday, January 10, 2012 9:34 AM > > > > > Subject: [DynoMotion] DynoMotion .net update > > > > > > > > > > > > > > >  > > > > > The .net DynoMotion libraries have been updated > > > > > > > > > > Fixed some typo's > > > > > > > > > > Completed the Main_Status implementation > > > > > > > > > > Added Get and Set methods for defining MCode Actions(untested) > > > > > > > > > > Download the source here:: > > > > > > > > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download > > > > > > > > > > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's > > > > > > > > > > ---Or--- > > > > > > > > > > Download the dll's and place in your C:\KMotion428\KMotion\Release\ > > > > > > > > > > here:: > > > > > > > > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download > > > > > > > > > > Happy coding, > > > > > > > > > > Brad Murry > > > > > > > > >  > > > > > > > > > >
|
|
| Group: DynoMotion |
Message: 3114 |
From: Tom Kerekes |
Date: 1/14/2012 |
| Subject: Re: DynoMotion .net update |
Hi Kevin/Brad,
ChangeFixtureNumber is shown below. The result should be exactly the same as typing G54 and so forth on the MDI. KMotionCNC uses it for the Fixture Number Dropdown List. It assumes the origin offsets have somehow been previously set to the desired values. From GCode you can set origin offsets with:
G10L2P1X0Y0Z0 (Set G54 offset to 0,0,0 used by default) G10L2P2X2Y0Z0 (Set G55 offset to 2,0,0) G10L2P3X0Y2Z0 (Set G55 offset to 0,2,0)
I think it may be the case that if you change the Origin Offsets they won't "take" until the Fixture Origin is changed or re-selected.
Regards
TK
int CGCodeInterpreter::ChangeFixtureNumber(int fixture)
{
switch (fixture)
{
case 1: return rs274ngc_execute("G54");
case 2: return rs274ngc_execute("G55");
case 3: return rs274ngc_execute("G56");
case 4: return rs274ngc_execute("G57");
case 5: return rs274ngc_execute("G58");
case 6: return rs274ngc_execute("G59");
case 7: return rs274ngc_execute("G59.1");
case 8: return rs274ngc_execute("G59.2");
case 9: return rs274ngc_execute("G59.3");
}
return 0;
}
| | | | | | | | | | | |